package com.ricchieri.common;

public class BusinessSettings {

    public static final Boolean ENTITY_ACTIVE = Boolean.TRUE; 
    public static final Boolean ENTITY_INACTIVE = Boolean.FALSE;  
  
    /*Navigation cases*/
    public static final String SUCCESS = "S";
    public static final String VIEW_DETAILS = "VIEW"; 
    public static final String UNSUCCESS = null; 
    public static final String UNSUCCESS_WITH_ERRORS = "E"; 
    public static final String LOGOUT = "LOGGEDOUT";
    public static final String ADD = "ADD";
    public static final String EDIT = "EDIT";
    public static final String SEARCH = "SEARCH";
    public static final String SEARCH_CHARTER = "SEARCH_CHARTER";
    public static final String SEARCH_CHARTER_EXPENSE = "SEARCH_CHARTER_EXPENSE";
    public static final String CANCEL_RESERVATION="CANCEL_RESERVATION";
    public static final String CANCEL_MULTIPLE_RESERVATION="CANCEL_MULTIPLE_RESERVATION";
    public static final String ADD_RESERVATION = "ADD_RESERVATION";
    public static final String SEARCH_RESERVATION = "SEARCH_RESERVATION";
    public static final String HOME_RESERVATION = "HOME_RESERVATION";
    public static final String SEARCH_TRIP = "SEARCH_TRIP";
    public static final String SEARCH_OPERATION = "SEARCH_OPERATION";
    public static final String SEARCH_EMAIL_TEMPLATE = "SEARCH_EMAIL_TEMPLATE";
    public static final String SEARCH_USER = "SEARCH_USER";
    public static final String VIEW_SCHEDULE_STATUS = "VIEW_SCHEDULE_STATUS";
    public static final String TRAVEL_STATUS = "TRAVEL_STATUS"; 
	public static final String BACK = "BACK";
    
    /*Keys to pass parameters between pages or controllers*/
    public static final String KEY_CUSTOM_SESSION = "custom_";
    public static final String KEY_USER = KEY_CUSTOM_SESSION.concat("user");
    public static final String KEY_SCHEDULE_CHARTER = KEY_CUSTOM_SESSION.concat("scheduleCharter");
	public static final String KEY_CHARTER = KEY_CUSTOM_SESSION.concat("charter");
	public static final String KEY_EMAIL_TEMPLATE = KEY_CUSTOM_SESSION.concat("emailTemplate");
	public static final String KEY_CHARTER_EXPENSE = KEY_CUSTOM_SESSION.concat("charterExpense");
	public static final String KEY_RESERVATION = KEY_CUSTOM_SESSION.concat("reservation");
	public static final String KEY_TRIP = KEY_CUSTOM_SESSION.concat("trip");
	public static final String KEY_ADD_RESERVATION = KEY_CUSTOM_SESSION.concat("addReservation");
	public static final String KEY_ADD_RESERVATION_USER = KEY_CUSTOM_SESSION.concat("addReservationUser");
	public static final String KEY_ADD_RESERVATION_SCHEDULE = KEY_CUSTOM_SESSION.concat("addReservationSchedule");
	public static final String KEY_CANCEL_RESERVATION = KEY_CUSTOM_SESSION.concat("cancelReservation");
	public static final String KEY_CANCEL_RESERVATION_USER = KEY_CUSTOM_SESSION.concat("cancelReservationUser");
	public static final String KEY_CANCEL_RESERVATION_SCHEDULE = KEY_CUSTOM_SESSION.concat("cancelReservationSchedule");

	public static final String KEY_SERVICE = KEY_CUSTOM_SESSION.concat("service");
	public static final String KEY_OPEARATION = KEY_CUSTOM_SESSION.concat("operation");	
	public static final String KEY_FIX_RESERVATION = KEY_CUSTOM_SESSION.concat("fixReservation");
	public static final String KEY_MULTIPLE_CANCELATION = KEY_CUSTOM_SESSION.concat("multipleCancelation");
	public static final String KEY_FILTER = KEY_CUSTOM_SESSION.concat("filter");
	
	/*SQL*/
	public static final int ROW_MAX_RESULT = 10;
	public static final String SORT_ASCENDING = "ASCENDING";
	public static final String SORT_DESCENDING = "DESCENDING";
	
	/*Schedule*/
	public static final String FRECUENCY_NONE = "1";
	public static final String FRECUENCY_ALL_DAYS = "2";
	public static final String FRECUENCY_SOME_DAY = "3";
	
	/*Reservation*/
	public static final String RESERVATION_ACTIVE = "false";
	public static final String RESERVATION_CANCELED = "true";
	
	/*MeanPayment*/
	public static final String MEAN_PAYMENT_CASH = "CASH";
	public static final String MEAN_PAYMENT_VOUCHER = "VOUCHER";
	public static final String MEAN_PAYMENT_CC = "CC";
	
	/*Roles*/
	public static final String ROLE_ADMIN = "ROLE_ADMIN";
	public static final String ROLE_PASSANGER = "ROLE_PASSANGER";
	public static final String ROLE_OPERATOR = "ROLE_OPERATOR";
	public static final String ROLE_DRIVER = "ROLE_DRIVER";
	
	public static final String ROLE_ADMIN_ID = "1";
	public static final String ROLE_PASSANGER_ID = "3";
	public static final String ROLE_OPERATOR_ID = "2";
	public static final String ROLE_DRIVER_ID = "4";
	
	/*Theme*/
	public static final String DEFAULT_THEME = "start";
	
	/*Report*/
	public static final String REPORT_ENCODING = "ISO-8859-1";
	public static final String CHARTER_REPORT = "charterReport";
	public static final String SCHEDULE_CHARTER_STATUS_REPORT = "scheduleCharterStatusReport";
	public static final String RESERVATION_REPORT = "reservationReport";
	public static final String CANCELATION_REPORT = "cancelationReport";
	
	public static final String REPORT_CHARTER_NUMBER = "charterNumber";
	public static final String REPORT_CHARTER_PATENT = "charterPatent";
	public static final String REPORT_CHARTER_KILOMETERS = "charterKilometers";
	public static final String REPORT_CHARTER_TYPE = "charterType";
	public static final String REPORT_CHARTER_AVAILABILITY = "charterAvailability";
	public static final String REPORT_CHARTER_OBSERVATIONS = "charterObservations";
	public static final String REPORT_CHARTER_DATE = "charterDate";	

	public static final String REPORT_DRIVER_NAME = "driverName";
	public static final String REPORT_SCHEDULE_TIME = "scheduleTime";
	public static final String REPORT_SCHEDULE_DATE = "scheduleDate";
	public static final String REPORT_TRIP_ORIENTATION = "tripOrientation";
	
	public static final String REPORT_RESERVATION_NUMBER = "reservationNumber";
	public static final String REPORT_FULLNAME = "fullname";
	public static final String REPORT_DOCUMENT_TYPE = "documentType";
	public static final String REPORT_DNI = "documentNum";
	public static final String REPORT_RESERVATION_TYPE = "reservationType";
	public static final String REPORT_UP_ON = "upOn";
	public static final String REPORT_DOWN_ON = "downOn";
	public static final String REPORT_TRIP_PRICE = "tripPrice";
	public static final String REPORT_OPERATOR = "operator";
	public static final String REPORT_RESERVATION_COMMENTS = "reservationComments";
	
	/*Email*/
	public static final String EMAIL_MESSAGE_REPLACE = "###MessageReplace###";
	public static final String EMAIL_TEMPLATE_HTML_PAGE	= "/email/mailTemplate.html";
	public static final String EMAIL_PROPERTIES = "/email/emailConfiguration.properties";	
	public static final String EMAIL_USERNAME = "mail.user";	
	public static final String EMAIL_PASSWORD = "mail.password";	
	
	public static final String EMAIL_TEMPLATE_WELCOME = "WELCOME";
	public static final String EMAIL_TEMPLATE_CANCELATION = "CANCELATION";
	public static final String EMAIL_TEMPLATE_MULTIPLE_CANCELATION = "MULTIPLECANCELATION";
	public static final String EMAIL_TEMPLATE_RESERVATION = "RESERVATION";
	public static final String EMAIL_TEMPLATE_WARNING = "WARNING";
	public static final String EMAIL_TEMPLATE_FIXED_RESERVATION = "FIXEDRESERVATION";
	public static final String EMAIL_TEMPLATE_RESERVATION_UPDATED = "RESERVATIONUPDATED";
	
	public static final String EMAIL_TAG_USERNAME = "emailUsername";
	public static final String EMAIL_TAG_FULLNAME = "emailFullname";
	public static final String EMAIL_TAG_ORIGIN = "emailReservationOrigin";
	public static final String EMAIL_TAG_DESTINY = "emailReservationDestination";
	public static final String EMAIL_TAG_RESERVATION_DATE = "emailReservationDate";
	public static final String EMAIL_TAG_RESERVATION_NUMBER = "emailReservationNumber";
	public static final String EMAIL_TAG_TRAVEL_DATE = "emailTravelDate";
	public static final String EMAIL_TAG_OPERATOR = "emailOperator";
	public static final String EMAIL_TAG_TRAVEL_PRICE = "emailTravelPrice";
	public static final String EMAIL_TAG_NOTICE = "emailNotice";
	public static final String EMAIL_TAG_UP_ON = "emailReservationUpOn";
	public static final String EMAIL_TAG_DOWN_ON = "emailReservationDownOn";
	public static final String EMAIL_TAG_START_DATE = "emailReservationStartDate";
	public static final String EMAIL_TAG_FINISH_DATE = "emailReservationFinishDate";
	public static final String EMAIL_TAG_TIME = "emailReservationTime";
	public static final String EMAIL_TAG_DAYS_WEEK = "emailDaysWeek";
	
	public static final String WELCOME = "1";
	public static final String RESERVATION = "2";
	public static final String CANCELATION = "3";
	public static final String WARNING = "4";
	public static final String FIXED_RESERVATION = "5";
	public static final String RESERVATION_UPDATED = "6";
	public static final String MULTIPLE_CANCELATION = "7";
	
	/* Operation */
	public static final String OPERATION_PAID = "P";
	public static final String OPERATION_RESERVATION = "R";
	public static final String OPERATION_CANCELATION = "C";
	public static final String OPERATION_ADVANCED = "A";
		
	/* Ant*/
	public static final String ANT_TARGET_CREATE_BACKUP = "createDBArchive";
	public static final String ANT_DATABASE_FILE = "/script/database.xml";
	
	/* Days */
	public static final String DAY_SUNDAY = "1";
	public static final String DAY_MONDAY = "2";
	public static final String DAY_TUESDAY = "3";
	public static final String DAY_WEDNESDAY = "4";
	public static final String DAY_THURSDAY = "5";
	public static final String DAY_FRIDAY = "6";
	public static final String DAY_SATURDAY = "7";
	
	/* Document Type */
	public static final String DOCUMENT_DNI = "1";
	public static final String DOCUMENT_PASSPORT = "2";
}
